package pe.gob.mef.snip.preinversion.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.gob.mef.snip.preinversion.dao.mybatis.ImpactoAmbientalMapperDAO;
import pe.gob.mef.snip.preinversion.domain.ImpactoAmbiental;
import pe.gob.mef.snip.preinversion.service.ImpactoAmbientalService;

@Service
public class ImpactoAmbientalServiceImpl implements ImpactoAmbientalService{
	
	@Autowired
	private ImpactoAmbientalMapperDAO impactoAmbientalMapperDAO;
	
	public void insertar(ImpactoAmbiental impactoAmbiental) {
		impactoAmbientalMapperDAO.insertar(impactoAmbiental);

	}

	public void actualizar(ImpactoAmbiental impactoAmbiental) {
		impactoAmbientalMapperDAO.actualizar(impactoAmbiental);
	}

	public void eliminar(ImpactoAmbiental impactoAmbiental) {
		impactoAmbientalMapperDAO.eliminar(impactoAmbiental);
		
	}
	
	public ImpactoAmbiental obtener(ImpactoAmbiental impactoAmbiental) {
		 return impactoAmbientalMapperDAO.obtener(impactoAmbiental);
		
	}

	public List<ImpactoAmbiental> listar(ImpactoAmbiental impactoAmbiental) {
		 return impactoAmbientalMapperDAO.listar(impactoAmbiental);
	}
}
